﻿using PCBase.UIControls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionCore
{
    public class TrayInfo
    {
        [Category("基本参数"), DisplayName("01.有效"), Description("fale：资料无效；true：资料有效；"), ReadOnly(true)]
        //[EditorAttribute(typeof(CommonInputEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public bool Enable { get; set; } = false;

        [Category("基本参数"), DisplayName("02.Wafer_ID"), Description("Wafer_ID")]
        //[EditorAttribute(typeof(CommonInputEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string Wafer_ID { get; set; } = "";

        [Category("检测结果"), DisplayName("05.检测开始时间"), Description("")]
        //[EditorAttribute(typeof(CommonInputEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public DateTime StartDT { get; set; } = DateTime.Now;

        [Category("检测结果"), DisplayName("06.检测完成时间"), Description("")]
        //[EditorAttribute(typeof(CommonInputEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public DateTime EndDT { get; set; } = DateTime.Now;

        [Category("封装路径"), DisplayName("01.TrayRoad"), Description("Tray的路径位置信息")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public LoadRoadHelper RoadMap { get; set; } = new LoadRoadHelper();

        [Category("检测结果"), DisplayName("07.退出标识"), Description("搬回Port标识")]
        //[EditorAttribute(typeof(CommonInputEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public bool UnloadFlag { get; set; } = false;

        [Category("Die信息"), DisplayName("01.Die信息"), Description("每个Die信息")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public List<DieInfo> Dies { get; set; } = new List<DieInfo>();

        public override string ToString()
        {
            return "...";
        }
    }
}
